﻿@using HZT.Framework.Contract
@using HZT.Framework.Web.Controls
@using AD.Contract.Models
@using AD.WebEx
@model PagedList<ADBill>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "广告业务台账";
}
@section PageSpecificStyleSheetIncludes{
}
<style type="text/css">
    .top
    {
        margin: 1px;
        width: 600px;
        line-height: 30px;
    }
    select
    {
        margin: 1px;
        width: 150px;
    }
    .p5
    {
        padding: 0px;
        padding-top: 5px;
        line-height: 200%;
        background: #fbfbfb;
    }
    .p5 label
    {
        width: 140px;
        text-align: right;
    }
    .p5 select
    {
        width: 133px;
    }
    #hourslider
    {
        display: inline-block;
        width: 120px;
        margin-top: 10px;
        margin-left: 30px;
    }
</style>
<div>
    <div class="top">
        <a class="btn blue thickbox" title='添加新广告订单' href="@Url.Action("Create")?TB_iframe=true&height=600&width=600">
            <i class="icon-plus icon-white"></i>订单录入</a> <a class="btn blue thickbox" title='特殊广告订单' href="@Url.Action("Create")?TB_iframe=true&height=600&width=600">
                <i class="icon-plus icon-white"></i>特殊订单录入</a> @*<a class="btn red" id="delete" href="javascript:;"><i class="icon-trash icon-white">
            </i>删除</a>*@
    </div>
    <div>
        @using (Html.BeginForm(null, null, null, FormMethod.Get, new { id = "search", @class = "form-inline" }))
        { 
            <div class="p5">
                <label>
                    广告部门：</label>@Html.TextBox("ContractId", Request["ADBill.ContractId"], new { @class = "m-wrap small" })&nbsp;
                <label>
                    合同编号/客户单位：</label>@Html.TextBox("CustomerId", Request["ADBill.CustomerId"], new { @class = "m-wrap small" })&nbsp;
                <button type="submit" class="btn">
                    搜索 <i class="icon-search"></i>
                </button>
            </div>  
        }
    </div>
    <table class="table table-striped table-hover ">
        <thead>
            <tr>
                <th style="width: 8px;">
                    <input type="checkbox" id="checkall" class="group-checkable" />
                </th>
                <th width="80">
                    广告部门
                </th>
                <th>
                    合同编号
                </th>
                <th>
                    客户名称
                </th>
                <th>
                    签约金额
                </th>
                <th>
                    状态
                </th>
                <th>
                </th>
                <th>
                    删除
                </th>
                <th>
                    变更
                </th>
                <th>
                    停止
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var p in Model)
            {
                <tr>
                    <td>
                        <input type="checkbox" class="checkboxes" name='ids' value='@p.Id' />
                    </td>
                    <td class="blue">
                        <span>@(p.DepartmentId)</span>
                    </td>
                    <td>
                        <span>@(p.ContractId)</span>
                    </td>
                    <td>
                    </td>
                    <td>
                        <span></span>
                    </td>
                    <td>
                        <span></span><span class="gray"></span>
                    </td>
                    <td>
                        <a class="btn mini purple thickbox" title='编辑来电记录内容' href="@Url.Action("Edit", new { id = p.Id })?TB_iframe=true&height=600&width=600">
                            <i class="icon-edit"></i>编辑 </a>
                    </td>
                    <th>
                         <a class="btn mini purple thickbox" title='' href="#">
                            <i class="icon-trash"></i>删除 </a>
                    </th>
                    <th>
                        <a class="btn mini purple thickbox" title='' href="#">
                            <i class=""></i>时间变更</a>
                             <a class="btn mini purple thickbox" title='' href="#">
                            <i class=""></i>时段变更</a>
                    </th>
                    <th>
                        <a class="btn mini purple thickbox" title='' href="#">
                            <i class=""></i>合同停止 </a>
                    </th>
                </tr>
            }
        </tbody>
    </table>
    <div class="dataTables_paginate paging_bootstrap pagination">
        @Html.Pager(Model, new PagerOptions() { ShowTotalItemCount = true })
    </div>
</div>
